package com.NHL.single
{
	import flash.events.TimerEvent;
	import flash.utils.Timer;

	public class GlobalTime
	{
		private var _severTime:Number = 0;
		private var _timer:Timer = new Timer(1000,0);
		
		private static var _inst:GlobalTime;
		
		public static function getInstance():GlobalTime
		{
			return _inst||(_inst = new GlobalTime())
		}
		public function GlobalTime()
		{
			_timer.addEventListener(TimerEvent.TIMER,onTimer,false,0,true);
		}
		
		public function get severTime():Number
		{
			return _severTime;
		}

		public function set severTime(value:Number):void
		{
			_severTime = value;
		}

		private function onTimer():void
		{
			_severTime+= 1000;
		}
	}
}